#include "ListCtrlPop.h"
#if !defined(AFX_GENERALEDIT_H__84B2DE3D_41D2_439A_809F_EE0EF3130F84__INCLUDED_)
#define AFX_GENERALEDIT_H__84B2DE3D_41D2_439A_809F_EE0EF3130F84__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GeneralEdit.h : header file
//
#define MYMESSAGE_EDIT_KHID_MOVED WM_USER + 1
/////////////////////////////////////////////////////////////////////////////
// CGeneralEdit window

class CGeneralEdit : public CEdit
{
// Construction
public:
	CGeneralEdit();

// Attributes
public:
	enum KILL{NORMALKILL=0,ESCKILL=1,RETURNKILL=2};
	bool	 m_bSetFocus;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGeneralEdit)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetValueUnOnChange(CString text);
	void SelectPopList(CListCtrlPop*  poplist);
	CRect			m_rectWindow;
	bool			m_bSetValue;
	KILL			m_Kill;
	CListCtrlPop *	m_poplist;
	virtual ~CGeneralEdit();

	// Generated message map functions
protected:
	//{{AFX_MSG(CGeneralEdit)
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnChange();
	afx_msg void OnPaint();
	//}}AFX_MSG
	afx_msg void OnParentMoved();

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GENERALEDIT_H__84B2DE3D_41D2_439A_809F_EE0EF3130F84__INCLUDED_)
